home *** CD-ROM | disk | FTP | other *** search
/ Programmers Heaven 2 / Programmers Heaven 2.iso / files / windows / ocx / midipk.exe / SLIDER.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-05-10  |  32.6 KB  |  983 lines

  1. VERSION 4.00
  2. Begin VB.Form FormSlider 
  3.    Appearance      =   0  'Flat
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Slider Properties Example"
  6.    ClientHeight    =   4845
  7.    ClientLeft      =   1140
  8.    ClientTop       =   2025
  9.    ClientWidth     =   8520
  10.    BeginProperty Font 
  11.       name            =   "MS Sans Serif"
  12.       charset         =   0
  13.       weight          =   700
  14.       size            =   8.25
  15.       underline       =   0   'False
  16.       italic          =   0   'False
  17.       strikethrough   =   0   'False
  18.    EndProperty
  19.    ForeColor       =   &H80000008&
  20.    Height          =   5250
  21.    Left            =   1080
  22.    LinkTopic       =   "Form2"
  23.    LockControls    =   -1  'True
  24.    MaxButton       =   0   'False
  25.    ScaleHeight     =   4845
  26.    ScaleWidth      =   8520
  27.    Top             =   1680
  28.    Width           =   8640
  29.    Begin VB.Frame Frame10 
  30.       Caption         =   "Bevel Inner"
  31.       BeginProperty Font 
  32.          name            =   "MS Sans Serif"
  33.          charset         =   0
  34.          weight          =   700
  35.          size            =   8.25
  36.          underline       =   0   'False
  37.          italic          =   0   'False
  38.          strikethrough   =   0   'False
  39.       EndProperty
  40.       Height          =   855
  41.       Left            =   6060
  42.       TabIndex        =   31
  43.       Top             =   60
  44.       Width           =   2355
  45.       Begin VB.OptionButton OptionBevelInner 
  46.          Caption         =   "Lowered"
  47.          BeginProperty Font 
  48.             name            =   "MS Sans Serif"
  49.             charset         =   0
  50.             weight          =   400
  51.             size            =   8.25
  52.             underline       =   0   'False
  53.             italic          =   0   'False
  54.             strikethrough   =   0   'False
  55.          EndProperty
  56.          Height          =   255
  57.          Index           =   3
  58.          Left            =   1080
  59.          TabIndex        =   35
  60.          Top             =   510
  61.          Width           =   1000
  62.       End
  63.       Begin VB.OptionButton OptionBevelInner 
  64.          Caption         =   "Inset"
  65.          BeginProperty Font 
  66.             name            =   "MS Sans Serif"
  67.             charset         =   0
  68.             weight          =   400
  69.             size            =   8.25
  70.             underline       =   0   'False
  71.             italic          =   0   'False
  72.             strikethrough   =   0   'False
  73.          EndProperty
  74.          Height          =   255
  75.          Index           =   2
  76.          Left            =   120
  77.          TabIndex        =   34
  78.          Top             =   510
  79.          Width           =   885
  80.       End
  81.       Begin VB.OptionButton OptionBevelInner 
  82.          Caption         =   "Raised"
  83.          BeginProperty Font 
  84.             name            =   "MS Sans Serif"
  85.             charset         =   0
  86.             weight          =   400
  87.             size            =   8.25
  88.             underline       =   0   'False
  89.             italic          =   0   'False
  90.             strikethrough   =   0   'False
  91.          EndProperty
  92.          Height          =   255
  93.          Index           =   1
  94.          Left            =   1080
  95.          TabIndex        =   33
  96.          Top             =   240
  97.          Width           =   885
  98.       End
  99.       Begin VB.OptionButton OptionBevelInner 
  100.          Caption         =   "None"
  101.          BeginProperty Font 
  102.             name            =   "MS Sans Serif"
  103.             charset         =   0
  104.             weight          =   400
  105.             size            =   8.25
  106.             underline       =   0   'False
  107.             italic          =   0   'False
  108.             strikethrough   =   0   'False
  109.          EndProperty
  110.          Height          =   255
  111.          Index           =   0
  112.          Left            =   120
  113.          TabIndex        =   32
  114.          Top             =   240
  115.          Value           =   -1  'True
  116.          Width           =   885
  117.       End
  118.    End
  119.    Begin VB.Frame Frame5 
  120.       Caption         =   "Slider"
  121.       BeginProperty Font 
  122.          name            =   "MS Sans Serif"
  123.          charset         =   0
  124.          weight          =   700
  125.          size            =   8.25
  126.          underline       =   0   'False
  127.          italic          =   0   'False
  128.          strikethrough   =   0   'False
  129.       EndProperty
  130.       Height          =   3870
  131.       Left            =   2580
  132.       TabIndex        =   24
  133.       Top             =   60
  134.       Width           =   3315
  135.       Begin VslideLib.VSlider Vslider1 
  136.          Height          =   3495
  137.          Left            =   120
  138.          TabIndex        =   46
  139.          Top             =   270
  140.          Width           =   495
  141.          _Version        =   65537
  142.          _ExtentX        =   873
  143.          _ExtentY        =   6165
  144.          _StockProps     =   73
  145.          BevelInner      =   0
  146.          BevelOuter      =   0
  147.          BevelWidth      =   2
  148.          BorderWidth     =   2
  149.          Gap             =   3
  150.          LargeChange     =   10
  151.          ThumbHeight     =   120
  152.          ThumbStyle      =   0
  153.          ThumbWidth      =   360
  154.          TickColor       =   0
  155.          TickCount       =   5
  156.          TickLength      =   4
  157.          TickMarks       =   0
  158.          TickWidth       =   1
  159.          TrackBevel      =   0
  160.          TrackWidth      =   0
  161.          Value           =   0
  162.          Max             =   100
  163.          Min             =   0
  164.       End
  165.    End
  166.    Begin VB.Frame Frame9 
  167.       Caption         =   "Slider Width"
  168.       BeginProperty Font 
  169.          name            =   "MS Sans Serif"
  170.          charset         =   0
  171.          weight          =   700
  172.          size            =   8.25
  173.          underline       =   0   'False
  174.          italic          =   0   'False
  175.          strikethrough   =   0   'False
  176.       EndProperty
  177.       Height          =   675
  178.       Left            =   2580
  179.       TabIndex        =   12
  180.       Top             =   4080
  181.       Width           =   3315
  182.       Begin VB.HScrollBar HScrollSliderWidth 
  183.          Height          =   255
  184.          Left            =   210
  185.          Max             =   2900
  186.          Min             =   200
  187.          TabIndex        =   45
  188.          Top             =   300
  189.          Value           =   200
  190.          Width           =   2895
  191.       End
  192.    End
  193.    Begin VB.Frame FrameBevelWidth 
  194.       Caption         =   "Bevel Width"
  195.       BeginProperty Font 
  196.          name            =   "MS Sans Serif"
  197.          charset         =   0
  198.          weight          =   700
  199.          size            =   8.25
  200.          underline       =   0   'False
  201.          italic          =   0   'False
  202.          strikethrough   =   0   'False
  203.       EndProperty
  204.       Height          =   675
  205.       Left            =   6060
  206.       TabIndex        =   11
  207.       Top             =   1860
  208.       Width           =   2355
  209.       Begin VB.HScrollBar HScrollBevelWidth 
  210.          Height          =   255
  211.          Left            =   210
  212.          Max             =   10
  213.          TabIndex        =   44
  214.          Top             =   300
  215.          Width           =   1965
  216.       End
  217.    End
  218.    Begin VB.Frame Frame7 
  219.       Caption         =   "Color"
  220.       BeginProperty Font 
  221.          name            =   "MS Sans Serif"
  222.          charset         =   0
  223.          weight          =   700
  224.          size            =   8.25
  225.          underline       =   0   'False
  226.          italic          =   0   'False
  227.          strikethrough   =   0   'False
  228.       EndProperty
  229.       Height          =   1095
  230.       Left            =   60
  231.       TabIndex        =   10
  232.       Top             =   1650
  233.       Width           =   2355
  234.       Begin VB.CommandButton CmdBackColor 
  235.          Appearance      =   0  'Flat
  236.          BackColor       =   &H80000005&
  237.          Caption         =   "Background Color"
  238.          BeginProperty Font 
  239.             name            =   "MS Sans Serif"
  240.             charset         =   0
  241.             weight          =   400
  242.             size            =   8.25
  243.             underline       =   0   'False
  244.             italic          =   0   'False
  245.             strikethrough   =   0   'False
  246.          EndProperty
  247.          Height          =   315
  248.          Left            =   150
  249.          TabIndex        =   18
  250.          Top             =   300
  251.          Width           =   2115
  252.       End
  253.       Begin VB.CommandButton CmdForeColor 
  254.          Appearance      =   0  'Flat
  255.          BackColor       =   &H80000005&
  256.          Caption         =   "Foreground Color"
  257.          BeginProperty Font 
  258.             name            =   "MS Sans Serif"
  259.             charset         =   0
  260.             weight          =   400
  261.             size            =   8.25
  262.             underline       =   0   'False
  263.             italic          =   0   'False
  264.             strikethrough   =   0   'False
  265.          EndProperty
  266.          Height          =   315
  267.          Left            =   150
  268.          TabIndex        =   17
  269.          Top             =   660
  270.          Width           =   2115
  271.       End
  272.    End
  273.    Begin VB.Frame Frame6 
  274.       Caption         =   "Tick Marks"
  275.       BeginProperty Font 
  276.          name            =   "MS Sans Serif"
  277.          charset         =   0
  278.          weight          =   700
  279.          size            =   8.25
  280.          underline       =   0   'False
  281.          italic          =   0   'False
  282.          strikethrough   =   0   'False
  283.       EndProperty
  284.       Height          =   1935
  285.       Left            =   60
  286.       TabIndex        =   9
  287.       Top             =   2820
  288.       Width           =   2355
  289.       Begin VB.OptionButton OptionTickMark 
  290.          Caption         =   "Right"
  291.          BeginProperty Font 
  292.             name            =   "MS Sans Serif"
  293.             charset         =   0
  294.             weight          =   400
  295.             size            =   8.25
  296.             underline       =   0   'False
  297.             italic          =   0   'False
  298.             strikethrough   =   0   'False
  299.          EndProperty
  300.          Height          =   255
  301.          Index           =   2
  302.          Left            =   120
  303.          TabIndex        =   0
  304.          Top             =   510
  305.          Width           =   885
  306.       End
  307.       Begin VB.OptionButton OptionTickMark 
  308.          Caption         =   "Both"
  309.          BeginProperty Font 
  310.             name            =   "MS Sans Serif"
  311.             charset         =   0
  312.             weight          =   400
  313.             size            =   8.25
  314.             underline       =   0   'False
  315.             italic          =   0   'False
  316.             strikethrough   =   0   'False
  317.          EndProperty
  318.          Height          =   255
  319.          Index           =   3
  320.          Left            =   1050
  321.          TabIndex        =   1
  322.          Top             =   510
  323.          Width           =   1275
  324.       End
  325.       Begin VB.OptionButton OptionTickMark 
  326.          Caption         =   "Left"
  327.          BeginProperty Font 
  328.             name            =   "MS Sans Serif"
  329.             charset         =   0
  330.             weight          =   400
  331.             size            =   8.25
  332.             underline       =   0   'False
  333.             italic          =   0   'False
  334.             strikethrough   =   0   'False
  335.          EndProperty
  336.          Height          =   255
  337.          Index           =   1
  338.          Left            =   1050
  339.          TabIndex        =   2
  340.          Top             =   270
  341.          Width           =   1185
  342.       End
  343.       Begin VB.OptionButton OptionTickMark 
  344.          Caption         =   "None"
  345.          BeginProperty Font 
  346.             name            =   "MS Sans Serif"
  347.             charset         =   0
  348.             weight          =   400
  349.             size            =   8.25
  350.             underline       =   0   'False
  351.             italic          =   0   'False
  352.             strikethrough   =   0   'False
  353.          EndProperty
  354.          Height          =   255
  355.          Index           =   0
  356.          Left            =   120
  357.          TabIndex        =   3
  358.          Top             =   270
  359.          Value           =   -1  'True
  360.          Width           =   885
  361.       End
  362.       Begin VB.HScrollBar HScrollTickCount 
  363.          Enabled         =   0   'False
  364.          Height          =   255
  365.          LargeChange     =   5
  366.          Left            =   660
  367.          Max             =   25
  368.          TabIndex        =   21
  369.          Top             =   870
  370.          Value           =   5
  371.          Width           =   1575
  372.       End
  373.       Begin VB.HScrollBar HScrollTickWidth 
  374.          Enabled         =   0   'False
  375.          Height          =   255
  376.          LargeChange     =   5
  377.          Left            =   660
  378.          Max             =   20
  379.          Min             =   1
  380.          TabIndex        =   20
  381.          Top             =   1170
  382.          Value           =   1
  383.          Width           =   1575
  384.       End
  385.       Begin VB.CommandButton CmdTickColor 
  386.          Appearance      =   0  'Flat
  387.          BackColor       =   &H80000005&
  388.          Caption         =   "Tick Color"
  389.          Enabled         =   0   'False
  390.          BeginProperty Font 
  391.             name            =   "MS Sans Serif"
  392.             charset         =   0
  393.             weight          =   400
  394.             size            =   8.25
  395.             underline       =   0   'False
  396.             italic          =   0   'False
  397.             strikethrough   =   0   'False
  398.          EndProperty
  399.          Height          =   315
  400.          Left            =   120
  401.          TabIndex        =   19
  402.          Top             =   1470
  403.          Width           =   2115
  404.       End
  405.       Begin VB.Label Label3 
  406.          Caption         =   "Count"
  407.          BeginProperty Font 
  408.             name            =   "MS Sans Serif"
  409.             charset         =   0
  410.             weight          =   400
  411.             size            =   8.25
  412.             underline       =   0   'False
  413.             italic          =   0   'False
  414.             strikethrough   =   0   'False
  415.          EndProperty
  416.          Height          =   255
  417.          Left            =   120
  418.          TabIndex        =   23
  419.          Top             =   870
  420.          Width           =   495
  421.       End
  422.       Begin VB.Label Label4 
  423.          Caption         =   "Width"
  424.          BeginProperty Font 
  425.             name            =   "MS Sans Serif"
  426.             charset         =   0
  427.             weight          =   400
  428.             size            =   8.25
  429.             underline       =   0   'False
  430.             italic          =   0   'False
  431.             strikethrough   =   0   'False
  432.          EndProperty
  433.          Height          =   255
  434.          Left            =   120
  435.          TabIndex        =   22
  436.          Top             =   1170
  437.          Width           =   495
  438.       End
  439.    End
  440.    Begin VB.Frame FrameBorderWidth 
  441.       Caption         =   "Border Width"
  442.       BeginProperty Font 
  443.          name            =   "MS Sans Serif"
  444.          charset         =   0
  445.          weight          =   700
  446.          size            =   8.25
  447.          underline       =   0   'False
  448.          italic          =   0   'False
  449.          strikethrough   =   0   'False
  450.       EndProperty
  451.       Height          =   675
  452.       Left            =   6060
  453.       TabIndex        =   8
  454.       Top             =   2610
  455.       Width           =   2355
  456.       Begin VB.HScrollBar HScrollBorderWidth 
  457.          Height          =   255
  458.          LargeChange     =   4
  459.          Left            =   210
  460.          Max             =   10
  461.          TabIndex        =   43
  462.          Top             =   300
  463.          Value           =   1
  464.          Width           =   1965
  465.       End
  466.    End
  467.    Begin VB.Frame Frame3 
  468.       Caption         =   "Track Bevel"
  469.       BeginProperty Font 
  470.          name            =   "MS Sans Serif"
  471.          charset         =   0
  472.          weight          =   700
  473.          size            =   8.25
  474.          underline       =   0   'False
  475.          italic          =   0   'False
  476.          strikethrough   =   0   'False
  477.       EndProperty
  478.       Height          =   1335
  479.       Left            =   6060
  480.       TabIndex        =   7
  481.       Top             =   3420
  482.       Width           =   2355
  483.       Begin VB.OptionButton OptionTrackBevel 
  484.          Caption         =   "Lowered"
  485.          BeginProperty Font 
  486.             name            =   "MS Sans Serif"
  487.             charset         =   0
  488.             weight          =   400
  489.             size            =   8.25
  490.             underline       =   0   'False
  491.             italic          =   0   'False
  492.             strikethrough   =   0   'False
  493.          EndProperty
  494.          Height          =   255
  495.          Index           =   3
  496.          Left            =   1110
  497.          TabIndex        =   39
  498.          Top             =   570
  499.          Width           =   1000
  500.       End
  501.       Begin VB.OptionButton OptionTrackBevel 
  502.          Caption         =   "Inset"
  503.          BeginProperty Font 
  504.             name            =   "MS Sans Serif"
  505.             charset         =   0
  506.             weight          =   400
  507.             size            =   8.25
  508.             underline       =   0   'False
  509.             italic          =   0   'False
  510.             strikethrough   =   0   'False
  511.          EndProperty
  512.          Height          =   255
  513.          Index           =   2
  514.          Left            =   150
  515.          TabIndex        =   38
  516.          Top             =   570
  517.          Width           =   885
  518.       End
  519.       Begin VB.OptionButton OptionTrackBevel 
  520.          Caption         =   "Raised"
  521.          BeginProperty Font 
  522.             name            =   "MS Sans Serif"
  523.             charset         =   0
  524.             weight          =   400
  525.             size            =   8.25
  526.             underline       =   0   'False
  527.             italic          =   0   'False
  528.             strikethrough   =   0   'False
  529.          EndProperty
  530.          Height          =   255
  531.          Index           =   1
  532.          Left            =   1110
  533.          TabIndex        =   37
  534.          Top             =   300
  535.          Width           =   885
  536.       End
  537.       Begin VB.OptionButton OptionTrackBevel 
  538.          Caption         =   "None"
  539.          BeginProperty Font 
  540.             name            =   "MS Sans Serif"
  541.             charset         =   0
  542.             weight          =   400
  543.             size            =   8.25
  544.             underline       =   0   'False
  545.             italic          =   0   'False
  546.             strikethrough   =   0   'False
  547.          EndProperty
  548.          Height          =   255
  549.          Index           =   0
  550.          Left            =   150
  551.          TabIndex        =   36
  552.          Top             =   300
  553.          Value           =   -1  'True
  554.          Width           =   885
  555.       End
  556.       Begin VB.HScrollBar HScrollTrackWidth 
  557.          Enabled         =   0   'False
  558.          Height          =   255
  559.          LargeChange     =   5
  560.          Left            =   660
  561.          Max             =   10
  562.          TabIndex        =   25
  563.          Top             =   870
  564.          Value           =   2
  565.          Width           =   1515
  566.       End
  567.       Begin VB.Label Label5 
  568.          Caption         =   "Width"
  569.          BeginProperty Font 
  570.             name            =   "MS Sans Serif"
  571.             charset         =   0
  572.             weight          =   400
  573.             size            =   8.25
  574.             underline       =   0   'False
  575.             italic          =   0   'False
  576.             strikethrough   =   0   'False
  577.          EndProperty
  578.          Height          =   255
  579.          Left            =   120
  580.          TabIndex        =   26
  581.          Top             =   870
  582.          Width           =   495
  583.       End
  584.    End
  585.    Begin VB.Frame Frame2 
  586.       Caption         =   "Bevel Outer"
  587.       BeginProperty Font 
  588.          name            =   "MS Sans Serif"
  589.          charset         =   0
  590.          weight          =   700
  591.          size            =   8.25
  592.          underline       =   0   'False
  593.          italic          =   0   'False
  594.          strikethrough   =   0   'False
  595.       EndProperty
  596.       Height          =   855
  597.       Left            =   6060
  598.       TabIndex        =   6
  599.       Top             =   960
  600.       Width           =   2355
  601.       Begin VB.OptionButton OptionBevelOuter 
  602.          Caption         =   "Lowered"
  603.          BeginProperty Font 
  604.             name            =   "MS Sans Serif"
  605.             charset         =   0
  606.             weight          =   400
  607.             size            =   8.25
  608.             underline       =   0   'False
  609.             italic          =   0   'False
  610.             strikethrough   =   0   'False
  611.          EndProperty
  612.          Height          =   255
  613.          Index           =   3
  614.          Left            =   1050
  615.          TabIndex        =   30
  616.          Top             =   540
  617.          Width           =   1000
  618.       End
  619.       Begin VB.OptionButton OptionBevelOuter 
  620.          Caption         =   "Inset"
  621.          BeginProperty Font 
  622.             name            =   "MS Sans Serif"
  623.             charset         =   0
  624.             weight          =   400
  625.             size            =   8.25
  626.             underline       =   0   'False
  627.             italic          =   0   'False
  628.             strikethrough   =   0   'False
  629.          EndProperty
  630.          Height          =   255
  631.          Index           =   2
  632.          Left            =   120
  633.          TabIndex        =   29
  634.          Top             =   540
  635.          Width           =   885
  636.       End
  637.       Begin VB.OptionButton OptionBevelOuter 
  638.          Caption         =   "Raised"
  639.          BeginProperty Font 
  640.             name            =   "MS Sans Serif"
  641.             charset         =   0
  642.             weight          =   400
  643.             size            =   8.25
  644.             underline       =   0   'False
  645.             italic          =   0   'False
  646.             strikethrough   =   0   'False
  647.          EndProperty
  648.          Height          =   255
  649.          Index           =   1
  650.          Left            =   1050
  651.          TabIndex        =   28
  652.          Top             =   270
  653.          Width           =   885
  654.       End
  655.       Begin VB.OptionButton OptionBevelOuter 
  656.          Caption         =   "None"
  657.          BeginProperty Font 
  658.             name            =   "MS Sans Serif"
  659.             charset         =   0
  660.             weight          =   400
  661.             size            =   8.25
  662.             underline       =   0   'False
  663.             italic          =   0   'False
  664.             strikethrough   =   0   'False
  665.          EndProperty
  666.          Height          =   255
  667.          Index           =   0
  668.          Left            =   120
  669.          TabIndex        =   27
  670.          Top             =   270
  671.          Value           =   -1  'True
  672.          Width           =   885
  673.       End
  674.    End
  675.    Begin VB.Frame Frame1 
  676.       Caption         =   "Thumb Style"
  677.       BeginProperty Font 
  678.          name            =   "MS Sans Serif"
  679.          charset         =   0
  680.          weight          =   700
  681.          size            =   8.25
  682.          underline       =   0   'False
  683.          italic          =   0   'False
  684.          strikethrough   =   0   'False
  685.       EndProperty
  686.       Height          =   1515
  687.       Left            =   60
  688.       TabIndex        =   5
  689.       Top             =   90
  690.       Width           =   2355
  691.       Begin VB.OptionButton OptionThumbStyle 
  692.          Caption         =   "Lined"
  693.          BeginProperty Font 
  694.             name            =   "MS Sans Serif"
  695.             charset         =   0
  696.             weight          =   400
  697.             size            =   8.25
  698.             underline       =   0   'False
  699.             italic          =   0   'False
  700.             strikethrough   =   0   'False
  701.          EndProperty
  702.          Height          =   255
  703.          Index           =   3
  704.          Left            =   90
  705.          TabIndex        =   4
  706.          Top             =   510
  707.          Width           =   885
  708.       End
  709.       Begin VB.OptionButton OptionThumbStyle 
  710.          Caption         =   "Pointed Right"
  711.          BeginProperty Font 
  712.             name            =   "MS Sans Serif"
  713.             charset         =   0
  714.             weight          =   400
  715.             size            =   8.25
  716.             underline       =   0   'False
  717.             italic          =   0   'False
  718.             strikethrough   =   0   'False
  719.          EndProperty
  720.          Height          =   255
  721.          Index           =   2
  722.          Left            =   1020
  723.          TabIndex        =   42
  724.          Top             =   510
  725.          Width           =   1275
  726.       End
  727.       Begin VB.OptionButton OptionThumbStyle 
  728.          Caption         =   "Pointed Left"
  729.          BeginProperty Font 
  730.             name            =   "MS Sans Serif"
  731.             charset         =   0
  732.             weight          =   400
  733.             size            =   8.25
  734.             underline       =   0   'False
  735.             italic          =   0   'False
  736.             strikethrough   =   0   'False
  737.          EndProperty
  738.          Height          =   255
  739.          Index           =   1
  740.          Left            =   1020
  741.          TabIndex        =   41
  742.          Top             =   270
  743.          Width           =   1185
  744.       End
  745.       Begin VB.OptionButton OptionThumbStyle 
  746.          Caption         =   "Normal"
  747.          BeginProperty Font 
  748.             name            =   "MS Sans Serif"
  749.             charset         =   0
  750.             weight          =   400
  751.             size            =   8.25
  752.             underline       =   0   'False
  753.             italic          =   0   'False
  754.             strikethrough   =   0   'False
  755.          EndProperty
  756.          Height          =   255
  757.          Index           =   0
  758.          Left            =   90
  759.          TabIndex        =   40
  760.          Top             =   270
  761.          Value           =   -1  'True
  762.          Width           =   885
  763.       End
  764.       Begin VB.HScrollBar HScrollThumbWidth 
  765.          Height          =   255
  766.          LargeChange     =   5
  767.          Left            =   660
  768.          Max             =   2500
  769.          TabIndex        =   14
  770.          Top             =   1140
  771.          Value           =   360
  772.          Width           =   1575
  773.       End
  774.       Begin VB.HScrollBar HScrollThumbHeight 
  775.          Height          =   255
  776.          LargeChange     =   5
  777.          Left            =   660
  778.          Max             =   2000
  779.          TabIndex        =   13
  780.          Top             =   840
  781.          Value           =   120
  782.          Width           =   1575
  783.       End
  784.       Begin VB.Label Label1 
  785.          Caption         =   "Width"
  786.          BeginProperty Font 
  787.             name            =   "MS Sans Serif"
  788.             charset         =   0
  789.             weight          =   400
  790.             size            =   8.25
  791.             underline       =   0   'False
  792.             italic          =   0   'False
  793.             strikethrough   =   0   'False
  794.          EndProperty
  795.          Height          =   255
  796.          Left            =   120
  797.          TabIndex        =   16
  798.          Top             =   1140
  799.          Width           =   495
  800.       End
  801.       Begin VB.Label Label2 
  802.          Caption         =   "Height"
  803.          BeginProperty Font 
  804.             name            =   "MS Sans Serif"
  805.             charset         =   0
  806.             weight          =   400
  807.             size            =   8.25
  808.             underline       =   0   'False
  809.             italic          =   0   'False
  810.             strikethrough   =   0   'False
  811.          EndProperty
  812.          Height          =   255
  813.          Left            =   120
  814.          TabIndex        =   15
  815.          Top             =   840
  816.          Width           =   495
  817.       End
  818.    End
  819.    Begin MSComDlg.CommonDialog CMDialog1 
  820.       Left            =   90
  821.       Top             =   4920
  822.       _Version        =   65536
  823.       _ExtentX        =   847
  824.       _ExtentY        =   847
  825.       _StockProps     =   0
  826.    End
  827. Attribute VB_Name = "FormSlider"
  828. Attribute VB_Creatable = False
  829. Attribute VB_Exposed = False
  830.  Const DLG_COLOR = 3
  831. 'Color Dialog Flags
  832.  Const CC_RGBINIT = &H1&
  833.  Const CC_FULLOPEN = &H2&
  834.  Const CC_PREVENTFULLOPEN = &H4&
  835.  Const CC_SHOWHELP = &H8&
  836. Private Sub CmdBackColor_Click()
  837.     '
  838.     ' Load the control with the VSlider BackColor
  839.     '
  840.     CMDialog1.Color = Vslider1.BackColor
  841.     '
  842.     ' Execute the color select dialog
  843.     '
  844.     CMDialog1.Flags = CC_RGBINIT Or CC_FULLOPEN
  845.     CMDialog1.Action = DLG_COLOR
  846.     '
  847.     ' Assign the selected color to VSlider Backcolor properties
  848.     '
  849.     Vslider1.BackColor = CMDialog1.Color
  850. End Sub
  851. Private Sub CmdForeColor_Click()
  852.     '
  853.     ' Load the control with the VSlider ForeColor
  854.     '
  855.     CMDialog1.Color = Vslider1.ForeColor
  856.     '
  857.     ' Execute the color select dialog
  858.     '
  859.     CMDialog1.Flags = CC_RGBINIT Or CC_FULLOPEN
  860.     CMDialog1.Action = DLG_COLOR
  861.     '
  862.     ' Assign the selected color to VSlider Forecolor properties
  863.     '
  864.     Vslider1.ForeColor = CMDialog1.Color
  865. End Sub
  866. Private Sub CmdTickColor_Click()
  867.     '
  868.     ' Load the control with the VSlider TickColor
  869.     '
  870.     CMDialog1.Color = Vslider1.TickColor
  871.     '
  872.     ' Execute the color select dialog
  873.     '
  874.     CMDialog1.Flags = CC_RGBINIT Or CC_FULLOPEN
  875.     CMDialog1.Action = DLG_COLOR
  876.     '
  877.     ' Assign the selected color to VSlider Tickcolor properties
  878.     '
  879.     Vslider1.TickColor = CMDialog1.Color
  880. End Sub
  881. Private Sub Form_Load()
  882.     ' Center the form on the screen
  883.     Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
  884. End Sub
  885. Private Sub HScrollBevelWidth_Change()
  886.     Vslider1.BevelWidth = HScrollBevelWidth.Value
  887. End Sub
  888. Private Sub HScrollBevelWidth_Scroll()
  889.     Vslider1.BevelWidth = HScrollBevelWidth.Value
  890. End Sub
  891. Private Sub HScrollBorderWidth_Change()
  892.     Vslider1.BorderWidth = HScrollBorderWidth.Value
  893. End Sub
  894. Private Sub HScrollBorderWidth_Scroll()
  895.     Vslider1.BorderWidth = HScrollBorderWidth.Value
  896. End Sub
  897. Private Sub HScrollSliderWidth_Change()
  898.     Vslider1.Width = HScrollSliderWidth.Value
  899.     If Vslider1.ThumbWidth > Vslider1.Width Then Vslider1.ThumbWidth = Vslider1.Width - 10
  900.     HScrollThumbWidth.Value = Vslider1.ThumbWidth
  901.     HScrollThumbHeight.Value = Vslider1.ThumbHeight
  902. End Sub
  903. Private Sub HScrollSliderWidth_Scroll()
  904.     Vslider1.Width = HScrollSliderWidth.Value
  905. End Sub
  906. Private Sub HScrollThumbHeight_Change()
  907.     Vslider1.ThumbHeight = HScrollThumbHeight.Value
  908. End Sub
  909. Private Sub HScrollThumbHeight_Scroll()
  910.     Vslider1.ThumbHeight = HScrollThumbHeight.Value
  911. End Sub
  912. Private Sub HScrollThumbWidth_Change()
  913.     Vslider1.ThumbWidth = HScrollThumbWidth.Value
  914. End Sub
  915. Private Sub HScrollThumbWidth_Scroll()
  916.     Vslider1.ThumbWidth = HScrollThumbWidth.Value
  917. End Sub
  918. Private Sub HScrollTickCount_Change()
  919.     Vslider1.TickCount = HScrollTickCount.Value
  920. End Sub
  921. Private Sub HScrollTickCount_Scroll()
  922.     Vslider1.TickCount = HScrollTickCount.Value
  923. End Sub
  924. Private Sub HScrollTickHeight_Scroll()
  925. End Sub
  926. Private Sub HScrollTickLength_Scroll()
  927. End Sub
  928. Private Sub HScrollTickWidth_Change()
  929.     Vslider1.TickWidth = HScrollTickWidth.Value
  930. End Sub
  931. Private Sub HScrollTickWidth_Scroll()
  932.     Vslider1.TickWidth = HScrollTickWidth.Value
  933. End Sub
  934. Private Sub HScrollTrackWidth_Change()
  935.     Vslider1.TrackWidth = HScrollTrackWidth.Value
  936. End Sub
  937. Private Sub HScrollTrackWidth_Scroll()
  938.     Vslider1.TrackWidth = HScrollTrackWidth.Value
  939. End Sub
  940. Private Sub OptionBevelInner_Click(index As Integer)
  941.     Vslider1.BevelInner = index
  942.     If OptionBevelOuter(0) = True And index = 0 Then
  943.         FrameBevelWidth.Enabled = False
  944.         FrameBorderWidth.Enabled = False
  945.     Else
  946.         FrameBevelWidth.Enabled = True
  947.         FrameBorderWidth.Enabled = True
  948.     End If
  949. End Sub
  950. Private Sub OptionBevelOuter_Click(index As Integer)
  951.     Vslider1.BevelOuter = index
  952.     If OptionBevelInner(0) = True And index = 0 Then
  953.         FrameBevelWidth.Enabled = False
  954.         FrameBorderWidth.Enabled = False
  955.     Else
  956.         FrameBevelWidth.Enabled = True
  957.         FrameBorderWidth.Enabled = True
  958.     End If
  959. End Sub
  960. Private Sub OptionThumbStyle_Click(index As Integer)
  961.    Vslider1.ThumbStyle = index
  962. End Sub
  963. Private Sub OptionTickMark_Click(index As Integer)
  964.     Vslider1.TickMarks = index
  965.     If index = 0 Then
  966.         HScrollTickCount.Enabled = False
  967.         HScrollTickWidth.Enabled = False
  968.         CmdTickColor.Enabled = False
  969.     Else
  970.         HScrollTickCount.Enabled = True
  971.         HScrollTickWidth.Enabled = True
  972.         CmdTickColor.Enabled = True
  973.     End If
  974. End Sub
  975. Private Sub OptionTrackBevel_Click(index As Integer)
  976.     Vslider1.TrackBevel = index
  977.     If index = 0 Then
  978.         HScrollTrackWidth.Enabled = False
  979.     Else
  980.         HScrollTrackWidth.Enabled = True
  981.     End If
  982. End Sub
  983.